<?php
/**
 *@file comment.php
 *@author Zhe.Zhou(zhouzhe@haibao.com)
 *@date 2015-7-29 下午4:21:02
 *@brief  
 */
namespace haibao\app\data;

class CommentBan extends BaseMysql{
	public function __construct(){
		parent::__construct('\haibao\app\model\data\CommentBan');
	}
	
	public function getBanById($userId){
	    $sql = 'select * from CommentBan where UserId=%s';
	    $result = $this->query($sql, array($userId));
	    
	    $retArr = array();
	    if($result){
	        $retArr = $result->fetch_assoc();
	    }
	    
	    return $retArr;
	}

	public function getUserBanList($model){
		return $this->getAll($model);
	}
}